<template>
  <div>
    <!-- this组件对象 -->
    <hr />
    <h1>{{this.$route.params.name}}</h1>
    <h1>{{name}}</h1>
    <h1>{{price}}</h1>
  </div>

</template>

<script>
  export default {
    props: ['name', 'price'],
    mounted() {
      console.log(this);
    }
  }
</script>

<style>
</style>
